<template>
  <div id="app">
    <router-view></router-view>
  </div>
  
</template>

<script>
export default {
  name: "app",
  data() {
    return {
      msg: "Welcome to Your Vue.js App"
    };
  }
};
</script>

<style lang="less">
@margintop:40px;
*{
   margin: 0;
   padding: 0;
}
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  margin-top: @margintop;
}

h1,h2 {
  font-weight: normal;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: inline-block;
  margin: 0 10px;
}

a {
  color: #42b983;
  text-decoration: none;
}
</style>

(function(){
  var html=document.documentElement;
  var width=html.clientWidth;//可视区的宽
  html.style.fontSize=width/26.78571428571429+'px';
})(); 